﻿using Medianamik.Client.Data;
using Medianamik.Core.DAL;
using Medianamik.Core.DAL.Repositories;
using Medianamik.Core.DAL.Services;
using SubSonic;

namespace Medianamik.UI.Web.TypeList.Data.Repositories
{
    public class TypeListRepository<TCollection, TItem> : MedianamikRepository<TCollection, TItem>, ITypeListRepository<TItem>
        where TItem : IBaseType, IRecordBase, new()
        where TCollection : ICollectionWithChildren<TCollection, TItem>, new()
    {
        public TypeListRepository(ICultureService cultureService, IContentStateService contentStateService, INodeMapper nodeMapper)
            : base(cultureService, contentStateService, nodeMapper)
        {
        }
    }

    public interface ITypeListRepository<T> : IMedianamikRepository<T>
        where T : IBaseType
    {
    }
}
